# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: games-arcade/frogatto/frogatto-9999.ebuild 2013/10/11 09:30:00 itspec.ru Exp $

EAPI="3"

inherit eutils git-2 games flag-o-matic

DESCRIPTION="a frog, and a platform game"
HOMEPAGE="http://frogatto.com/"
EGIT_REPO_URI="https://github.com/frogatto/frogatto.git"

LICENSE="CC-BY-3.0 CC-BY-NC-SA-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="games-engines/anura"

RDEPEND="${DEPEND}"

src_unpack() {
    git-2_src_unpack
}

src_compile() {
    einfo "do nothing"
}

src_install() {

    dodoc CHANGELOG INSTALL LICENSE README
    newgamesbin "${FILESDIR}/${PN}-${PV}" "${PN}"
    insinto "${GAMES_DATADIR}/anura/modules/${PN}"
    doins -r data images locale music music_aac music_aac_mini po sounds sounds_wav utils *.cfg || die
    newicon images/window-icon.png "${PN}.png"
    make_desktop_entry "${PN}" "Frogatto and Friends"
    prepgamesdirs
}
